package com.hyw.encryption.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 用于控制请求和响应的加解密动作,如果请求头有对应的kv,则不做对应的加解密
 * 
 * @author Hongyu
 */
@ConfigurationProperties(prefix = "hyw.encryption.skipper")
public class EncryptionSkipperConfig {

  /**
   * 默认开启
   */
  private Boolean enable = Boolean.TRUE;

  /**
   * 请求头的值，默认为esb
   */
  private String key = "esb";

  /**
   * esb对应的value,并有默认值
   */
  private String value = "c4d97ad826974dfa8f0500307f560c97";

  public Boolean getEnable() {
    return enable;
  }

  public void setEnable(Boolean enable) {
    this.enable = enable;
  }

  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

}
